<!-- @format -->

<template>
  <UseSpace title="数组形式调用">
    <Form @submit="onSubmit">
      <Field name="links[0]" type="url" />
      <Field name="links[1]" type="url" />
      <button>Submit</button>
    </Form>
  </UseSpace>
</template>
<script setup>
  import { Field, Form, ErrorMessage } from 'vee-validate'
  function onSubmit(values) {
    alert(JSON.stringify(values, null, 2))
  }
</script>
